﻿using System;
using System.Collections.Generic;

namespace Biz.Data.Entities;

/// <summary>
/// 订单项，该表为子表类型，绝大部分业务场景中随主表更新时做全删全加，不可单独 insert \ update \ delete
/// </summary>
public partial class OrderItemInfo
{
    /// <summary>
    /// 订单号
    /// </summary>
    public string OrderId { get; set; } = null!;

    /// <summary>
    /// 商品
    /// </summary>
    public string GoodsName { get; set; } = null!;

    /// <summary>
    /// 计量单位名称
    /// </summary>
    public string? Unit { get; set; }

    /// <summary>
    /// 数量
    /// </summary>
    public int Quantity { get; set; }

    /// <summary>
    /// 单价
    /// </summary>
    public decimal UnitPrice { get; set; }

    /// <summary>
    /// 实际交易额
    /// </summary>
    public decimal TradeAmount { get; set; }

    /// <summary>
    /// 税率
    /// </summary>
    public float TaxRate { get; set; }

    public int Ordinal { get; set; }

    public virtual OrderInfo Order { get; set; } = null!;
}
